package com.ruoyi.project.business.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.project.business.mapper.BusinessCustomerServiceMapper;
import com.ruoyi.project.business.domain.BusinessCustomerService;
import com.ruoyi.project.business.service.IBusinessCustomerServiceService;

/**
 * 客服Service业务层处理
 * 
 * @author ruoyi
 * @date 2020-11-04
 */
@Service
public class BusinessCustomerServiceServiceImpl implements IBusinessCustomerServiceService 
{
    @Autowired
    private BusinessCustomerServiceMapper businessCustomerServiceMapper;

    /**
     * 查询客服
     * 
     * @param id 客服ID
     * @return 客服
     */
    @Override
    public BusinessCustomerService selectBusinessCustomerServiceById(Long id)
    {
        return businessCustomerServiceMapper.selectBusinessCustomerServiceById(id);
    }

    /**
     * 查询客服列表
     * 
     * @param businessCustomerService 客服
     * @return 客服
     */
    @Override
    public List<BusinessCustomerService> selectBusinessCustomerServiceList(BusinessCustomerService businessCustomerService)
    {
        return businessCustomerServiceMapper.selectBusinessCustomerServiceList(businessCustomerService);
    }

    /**
     * 新增客服
     * 
     * @param businessCustomerService 客服
     * @return 结果
     */
    @Override
    public int insertBusinessCustomerService(BusinessCustomerService businessCustomerService)
    {
        return businessCustomerServiceMapper.insertBusinessCustomerService(businessCustomerService);
    }

    /**
     * 修改客服
     * 
     * @param businessCustomerService 客服
     * @return 结果
     */
    @Override
    public int updateBusinessCustomerService(BusinessCustomerService businessCustomerService)
    {
        return businessCustomerServiceMapper.updateBusinessCustomerService(businessCustomerService);
    }

    /**
     * 批量删除客服
     * 
     * @param ids 需要删除的客服ID
     * @return 结果
     */
    @Override
    public int deleteBusinessCustomerServiceByIds(Long[] ids)
    {
        return businessCustomerServiceMapper.deleteBusinessCustomerServiceByIds(ids);
    }

    /**
     * 删除客服信息
     * 
     * @param id 客服ID
     * @return 结果
     */
    @Override
    public int deleteBusinessCustomerServiceById(Long id)
    {
        return businessCustomerServiceMapper.deleteBusinessCustomerServiceById(id);
    }
}
